package com.example.course

import java.io.Serializable

fun Course(courseName: String, teacher: String, classRoom: String, day: Int, start: Int, end: Int): Course {
    return Course(courseName, teacher, classRoom, day, start, end, start, end)
}

data class Course(
    val courseName: String,
    val teacher: String,
    val classRoom: String,
    val day: Int,
    val start: Int,
    val end: Int,
    val classStart: Int,
    val classEnd: Int
) : Serializable {

    fun getCourseName(): CharSequence {
        return courseName

    }

    fun getDay(): Any {
        return day
    }

    fun getStart(): Any {
        return classStart
    }

    fun getEnd(): Any {
        return classEnd
    }

    fun getTeacher(): CharSequence {
        return teacher
    }

    fun getClassRoom(): CharSequence {
        return classRoom
    }
}


